package task4_1;

public class Factory {
	public static MusicBox getlnstance(String className){
		MusicBox m=null;
		if("PianoBox".equals(className)){
			m=new PianoBox();
		}
		if("ViolinBox".equals(className)){
			m=new ViolinBox();
		}
		return m;
	}
}

